//////////////////////////////////////////////////////////////////////////
// FileName:UserRoles
// CreateBy:DragonXiong
// CreateDate:2009-07-24
// Description:
//		       Operate List 
//      
// Modify Log:
//	
// Copyright:ASL-MIS
/////////////////////////////////////////////////////////////////////////
using System;
using System.Data;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Auto.Data.Security;

namespace BaseSystem._System
{
    public partial class SysOperateList : System.Web.UI.Page
    {
        DataTable dt;
        protected void Page_Load(object sender, EventArgs e)
        {
            dt = (DataTable)Session["SysOperateList.dt"];
            if (!IsPostBack)
            {
                Display("");
            }
        }

        protected void btnSch_Click(object sender, EventArgs e)
        {
            Display(txtKeywords.Text.Trim());
        }

        protected void Display(string keywords)
        {

            dt = new OperateList().GetDataByKeywords(keywords);
            Session["SysOperateList.dt"] = dt;
            BindGridView();

        }

        protected void BindGridView()
        {
            gvShow.DataSource = dt;
            gvShow.DataBind();
        }

        
    }
}
